//package com.example.es.controller;
//
//import com.example.es.entity.EsUser;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
//import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * @author guoq.z
// * @date 2021/3/6
// */
//@RestController
//@Api(tags = "es 控制类")
//public class EsController {
//
//    @PostMapping
//    @ApiOperation("exampleMethod")
//    public void exampleMethod() {
//        System.out.println("into example method");
//    }
//
//    @Autowired
//    ElasticsearchRestTemplate elasticsearchRestTemplate;
//
//    @ApiOperation("saveInfo")
//    @PostMapping("/save")
//    public void saveInfo(@RequestBody EsUser esUser){
//        elasticsearchRestTemplate.save(esUser);
//    }
//
//    @ApiOperation("saveInfoRepository")
//    @PostMapping("/saveInfoRepository")
//    public void saveInfo(@RequestBody EsUser esUser){
//        elasticsearchRestTemplate.save(esUser);
//    }
//}
